Fixed a memory error in ChapterItemWrapper
Removed unused variable