fix error patch