remove extra dash in command