minor fix in toggleSound