Fix hooks perms