Fix bug in modifying book