If you completely remove the knob, and the switch works like it should (stays in place), then it is probably the knob itself being too long. Sometimes the knob and switch are not totally compatible, causing the knob to go too far into the switch recess and not being able to "lock" into position.