Fix bug with namespace, router and loader.