fixed minify issue and building bug