Update before a rewrite