fix syntax error, unexpected '{'