Fix frequency range bug