Fixed buggy instanced draw calls in primitive renderer