fix traveling direction