Fix dependency injection issue in app.ts