fix id of book and chapter