Use Region::last_frame() rather than position + length in RegionSelection::end_frame...