Fixed borrowing issue in extract