fixed conversion problem in true DL-distance function