Update except

Renamed last_idx to last_pos.