some fixes for linear gradient