Hello. I have a problem because I have stair switches that worked properly but the light did not always turn on the first time, so I decided to replace them. After replacement, they do not work as they should, ie. If I turn the light on with one switch, I can only turn it off with the same switch. In the box at the bottom I have 4 wires: red (phase), blue, yellow and ground, and at the top I have 6 wires: two red, blue, yellow, black and ground. Anyone have an idea how to connect to work properly?