Fixed a bug that caused only the first line sent by the console to be executed.