Fix tab movement.