fixed an issue with user perms