fixed buffer binding bug