Fix for missing ThrowCodeError routine error