fixed minification error due to improper injection