fixed the output writer logger