fixed a few indexing errors