fix bug where no var in the geogriddatasource is selected