fix get_frequency.sh