fixed conditional in UsersQuery