Not really sure I follow as you have al X wired in series so no matter which wire is which it should not matter, they are only acting as a closed circuit when non activated and an open circuit when activated.
Main thing, I suppose, is you now have things working.
Hood