If the user does not type any command, restore the previous one and run
it again