remove double exits