fix syntax error in terminal-script