Direction bug fix