fix bug in build for base