fixed loading distance matrix