fix some bug,add buff size