fixed bugs for gapfill_georegions.R and functions.R encountered when running Canada-CHONe2014