Fixed bug when loading the wrong route.