Makes resetting loc to a given location work.