fix freq bug