Fix the error handling case.