Fixed a bug that caused commands in the command line to be executed twice.