fix the gradient mixin