stdout bug fixed