Fixed a problem with changing the books to which chapters belong.