fix error prints