bug fix on minified