fixed bug in wmtbadsgml2doc