fix malformed patch