Fixed bug: crash when build after deleting a chapter in the config file