Fixed bug if user record has empty group array