fix throw syntax error