Fixed some IndexBuffer generation