check_connections.py fix