Fix failed patch application.