remove wrong commands