fixed issue with user permission saving