fix some wrong vars or funcs in builder.go Upstream-commit: 1a7c906757d3a52c7bddb7f55a08d8db75f15d26 Component: engine