Fix propagation path finding algorithm