Fixed some bugs in or_atable.c and or_dijkstra.c