fix typos in command handling