Change _distanceToCore, fixes #4