Fix for user group assignment