indexing error in fit-grains