fixed issue where the reference to an error was incorrectly handled.