Fixed input being cleared for all commands.