Fix a bug where all the routes from the second controller onwards were incorrectly connected.