Gitlab has been updated. More info here.
There is an incorrect factor 2 on the last equation. We should remove it.