fixed a reference error in builder.js