Fix conditional for create user groups