Fixed an issue with group not being set correctly when a user applies