Ctrl+n error
The function should change the state, not the frequency