fix a bug in band pass filter