fix AddBook function

Signed-off-by: tuyetphale993 <tuyetphale993@gmail.com>