fixes wrong-headed approach to loop for fit-grains