Renumbering ids