list indexing fixes