fixing perms