fix bug for retrieve book details