Fixed get_routes() method.