fixed TypeError bug when roles is array on addUserRoles/removeUserRoles