Do setLocation after changing worlds

Putting setLocation before would cause errors.