Fix patch type