quick distance matrix fix