ENH: distance error works partialy