Fix character change direction on click