Fixes negative stream gradients