Fix updating with same values