fix a bug thay would compute harmonic weights incorrectly for non-default parameter values