Fix groups when creating user from inside subgroup (fix #269)