Minor simplification of the cursor allocation logic for update.