Fix distance between worlds bug.