fix buffer eobuf bug