fix of https://github.com/raphendyr/gitlabhq/issues/8