Fix gain param error.