fix typeof undefined base
build