fixed bug in freq stepping