GFAS: Corrected random rank error that were not using the correct shapefile index. See merge request !77