bug fix in my adding of record to chapter_progress