gradients plot bugs fixed