fix pstdout problem