Fixed route retrieval bug