fixed texture binding bug