Fixes bug with finding the group of a user

Signed-off-by: Alexander Cogneau <alexander.cogneau@hotmail.be>