Fixing gradient snippet