:zap: (reverting) ending condition in routes loop