fix error aborting