Fix header switch remain off

Fix header switch remain off when switched on from Preference, in case
attenuation properties are disabled.