fix bug in [wml_message] which caused wml errors not to be flushed