Fix minor bug about user permissions