bug fixing for borrowing book