Fix for missing ThrowCodeError routine errors