Fix SNAFU on region trimming with grid enabled caused by my recent supposed fix.