Bug fix on minify