Fixed expected ‘}’ before ‘{’ token syntax error.