Fix the error method