PATCH_RUN_MEM_SAFE_CHECK better