Fix direction reversing