Fixes warnings. Makes dijkstras path clearer