Fixed streamReadBuffer, works properly now