fixed bug for saving book