fixed error indexing bug when testing