Fix problem with path weight, this also fix the problem with the never ending TwoOptHeuristik.