* fixed buffer bug