fix bug, when frequency is very low