fixed bug in resonance params generator