Trying to fix the error controller problem.