fix IOBuffer
fix bug