fixed a bug when running

there's a bug when trying to add a command after adding/deleting. have
to type the command twice
isResultLocked value is changed at add and delete. may affect behaviour
later