fixed catch syntax error