Brief fix for globalToLocal determination.

Once upon a time, there wasn't a loop in there. And the code was
perfectly fine. But the times change. Oh, the times do change.