Fix comparison to avoid infinite loop with zero cost paths
Fix comparison to avoid infinite loop with zero cost paths

erg/factor,erg/factor,mcandre/factor,erg/factor,mcandre/factor,mcandre/factor,mcandre/factor,mcandre/factor,erg/factor,mcandre/factor,mcandre/factor,erg/factor,erg/factor,erg/factor