update chapter ids