fixed up error, forgot to call permissionSave