Fixed when an error was being passed