Fixed a bug that would stop commands from  being executed in the terminal.