One common source of chattering is a bad solder joint.
If you have a soldering iron, reflow the switch's solder joints. i.e. for each one, heat it until you see that the solder melts and then let it cool again.
If that does not fix the problem, the problem could be a defective switch.