Fix broken CMSSettings saving

Regression from da7e515d1331693422457054997092ef0b31c437
Merge pull request #1755 from kinglozzer/leftandmain_state_fix

Fix broken CMSSettings saving