fix to minify code