fix bug in builder