Rewrite pocket history when changing id.