fixed bugs on distance updates