buffering problem under MacOS fixed