Fixing createLinearGradient and createRadialGradient