bug fix in anymessage

errtype was persisting in global messages.