Fix griadient attributes