fixed a few indexings of Vec and a reference to Box