Previously the command was being modified in place in order to find the command name. This was happening before saving to the history. Fixes #70