Fix positioning of chapters for when a chapter is edited in the database