fix inject for minification