fix buffer bug