Fixed debug change to none and change of direction bugs.