Need help with circuit to sense model train direction
The comment from Brian Drummond led me to add OR gates at the Set inputs of each latch in order to have all the inputs defined when the switches are open.
I redesigned my circuit and it works.

Thanks Brian