Fixes how the controller for each view is resolved in the router