fix to work with gradient background cells.