fixed angular minification errors caused by improper dependency injection