Fix perms issuses