Fix bug: not possible to set frequency