fix run_frequency.sh