fix a bug with update generation