Primitive.drawElements fix