attempt to fix problems occured when length(coeff)/n_inputs = odd number, and coefficients are symmetric