fixed a index buffer bug