Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Try adding a small capacitor from the switch to ground.
Tanks for your attention Brian.Are you really driving a relay coil like that? It's asking for problems, use a transistor to drive the coil and add a diode across the coil to catch the back spike. I'm surprised it works at all, the relay coil works in both polarities so hanging it across an inverter will release a voltage spike as the logic state changes and that could be the cause of your problem.
Also note that the CD4502 has an enable pin, not shown in your schematic.
Brian.
problem append between Q2,Q1 of the CD4029 and the input of XNOR. During the change state of Q2 and Q1 the XNOR change it output for short time.