fixed overflow issue with harmonics