fixed a bug in RST.writeArticle()