Fixes routing and loading extensions bug