fix error compare