Fix use of new gradient.