How to handle a circuit switched by ground