low-pass filter bug fix (round errors corrected)