fixed ClassCastExeption in EditCmd