fixing bug with multi texture batcher