Fix insertions that relied on specific ids