Fix patch error