fix update generation