Fixes issues where previousChapterID and nextChapterID were not updated correctly