Fix and update mode changing handling.
Fix and update mode changing handling.

peppy/osu-new,Drezi126/osu,DrabWeb/osu,peppy/osu,Nabile-Rahmani/osu,DrabWeb/osu,DrabWeb/osu,peppy/osu,UselessToucan/osu,ZLima12/osu,naoey/osu,ppy/osu,UselessToucan/osu,2yangk23/osu,smoogipooo/osu,ppy/osu,EVAST9919/osu,smoogipoo/osu,johnneijzen/osu,NeoAdonis/osu,NeoAdonis/osu,Damnae/osu,Frontear/osuKyzer,smoogipoo/osu,ZLima12/osu,2yangk23/osu,EVAST9919/osu,naoey/osu,osu-RP/osu-RP,nyaamara/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,RedNesto/osu,johnneijzen/osu,NeoAdonis/osu,tacchinotacchi/osu,ppy/osu,naoey/osu