Removed bug(distance to source was infinity)