fix form syntax error caused by widget