bind buffer to 0 when finish draw