fix gradient value change