fix min/max variables in spatial data