Fix a bug with lastUpdate modification