Fix error when syncing deleted milestones