Fix --gain with fractional gain values.