Fix freq setting when power off/on