fix build in minify