Fix some error when I/O buffer data references