Set perms correctly