Fix the permission resolution