Fixed a bug with command history not being executed as a command when selected