fixed some lingering bugs with gradients