fix the permissions