fixed bug with route checking in ./maintain_routes.py