Finally actually fix setLocation()

All those other commits that say they fix setLocation() are liars.

Some auto-formatting done here too.