fix syntax error in frontend