Small fixes to the permissions