fix bug in WRITE_ARTICLES