You must set the same color as the other side of the gradient.
In your case, if the initial color is black, you must set the black on the other side gradient, even though its opacity will be zero and the color will be completely transparent.