undo deal with the situation when there is no command in the stack