Fixed bugs in the Vertex and Index Buffers.