Fix functionality of borrowed_books