Fix small bug on the mode selector.