make the permission correct