Fix patch script.