Fix the bug of calculating FIR filter gain

Talked to Jim Camp, calculate the gain according to the max filter tap,
not the sum.