patched bugs with page-permissions