# Checklists (p.243): itemID doesn't display properly all the time

**URL:** <https://forums.kodeco.com/t/checklists-p-243-itemid-doesnt-display-properly-all-the-time/23543>\
**Category:** iOS Apprentice\
**Created:** [November 30, 2016, 7:46pm UTC](https://forums.kodeco.com/t/checklists-p-243-itemid-doesnt-display-properly-all-the-time/23543 "2016-11-30T19:46:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jharveymorgan](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jharveymorgan/32/102178_2.png) [@jharveymorgan](https://forums.kodeco.com/u/jharveymorgan)\
**Post date:** [November 30, 2016, 7:46pm UTC](https://forums.kodeco.com/t/checklists-p-243-itemid-doesnt-display-properly-all-the-time/23543/1 "2016-11-30T19:46:57Z")

</div>

I have the code correctly. When I create new checklists the itemID is generated correctly and it saves when I go to the home screen. If I tap the app on the simulator, the app opens and displays all the correct itemIDs. However, if I go to the home screen and run the app again from Xcode it resets all previous itemIDs to 0.

Is there something I’m missing?  
I just want to make sure I’m understanding the problem.

Thanks!

---

<div class="post-metadata">

**Author:** ![hollance](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hollance/32/109009_2.png) [@hollance](https://forums.kodeco.com/u/hollance)\
**Post date:** [December 2, 2016, 7:46am UTC](https://forums.kodeco.com/t/checklists-p-243-itemid-doesnt-display-properly-all-the-time/23543/2 "2016-12-02T07:46:33Z")

</div>

That sounds like something is missing indeed, but from your description I’m not 100% sure what.

What exactly do you mean by “resets all previous ItemIDs to 0”?

Do you mean that when the checklist items are loaded back in from the plist file, their old ItemIDs are erased and are now 0?

If that is the case, then it sounds like `init?(coder)` in ChecklistItem.swift may not be loading the ItemID property correctly.

---

<div class="post-metadata">

**Author:** ![jharveymorgan](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jharveymorgan/32/102178_2.png) [@jharveymorgan](https://forums.kodeco.com/u/jharveymorgan)\
**Post date:** [December 2, 2016, 8:01pm UTC](https://forums.kodeco.com/t/checklists-p-243-itemid-doesnt-display-properly-all-the-time/23543/3 "2016-12-02T20:01:07Z")

</div>

I swear I went over every line of my code.  
But, I made a simple error in the init?(coder). I had “itemID” instead of “ItemID”.  
Can’t believe I missed that 😒

Thanks for letting me know where to look!
