fix bug that can borrow when stock <=0