fixed the issue about undefined app into routerController