fixing critical syntax error