fix LOG_STDOUT issue #265