fix perms