fix bug - add dependency injection annotation to prevent error with minification