fix freq.sh