bug fix, use [ent] instead of [dist] as mark

if there is 0 cost arc, it's possible that the shortest dist
is exactly inf