Fixed annoying bug when user could not type same command in the row