fix error helper