bug fix on injection while minification