Fix print problem in stdout