fix error call back