Fix an issue when updating several times in a row