Fix the auto direction