Corrected the order of the updates when saving a book.