Fixed a couple of bugs with IndexedVertexBuffer