fixed bug if dijkstras starts on transition edge