fixed #2 distance error on different worlds