fix bug with scope in builder.ST block