Fix borrow errors.