Bug fixed when changing mode and root note