fix logic error in mode storage
fix logic error in mode storage

Hrishi1999/musicblocks,walterbender/musicblocks,eohomegrownapps/musicblocks,eohomegrownapps/musicblocks,walterbender/musicblocks,Hrishi1999/musicblocks,Hrishi1999/musicblocks,eohomegrownapps/musicblocks,walterbender/musicblocks