Supress double setting of a state

that fixes the problem that sound wasn't restored