fix error in error handling