Rewrite apply_patch