fixed frequency change bug