Fixed error when db.chapter.chapter is not writeable.