Fixed the bug where the unavailable books are still borrow-able.