fix for malformed patch