fixed NaN on card update