bug fix: Swapped the origin and desination for direction functionality