fix error logging