Fixes a linear gradient issue.