Fixing issue where error was being clobbered.