Fixed bug in Routes Cache Generation