Fix bug (app.run) for dependency injection