remove double dashes before run