Fix grid list indexing. Closes #37.