Fixed bug when dealing with times to get routes