Fixes issues with controller routing.