fix an error handling