fixe buffer split issue