The switches need to be wired as in the schematic, one of the 3 samples.
Click on the image for full resolution.