Fixed some index buffer issues