fix frequency not getting updated