Fix gradient background bug