[Generator] [Builder] fixed syntax errors in builders

Maybe this commit should also be applied on branch 1.6.