Fix Floyd-Warshall