Fixed Dijkstras and tried to fix learn again