Fixing the critical bug from last commit

-bash: /dev/stdin: line 633: syntax error: unexpected end of file

Caused on line 609 since a semi was at the end of an EOF