Fixed load-segment to handle the cursor correctly