fixed issues with harmonics implementation