Fix the use of Float::Infinity with conditionnal cost, must set with Float::MAX