lol I was sending numIndices as the value for the numPrimitives parameter of the geometryElement init