making the mode indicator reset properly