I am trying to build a selectable gain circuit with 74HC4066 and a LM324 op-amp.
(the 4066 is used to shunt two out of three resistors that set the gain of the op-amp )

But i have trouble with the OFF impedance of the analog switch:
- [OK] when control pin (pin13) is pulled high the impedance between i/o gate is lower then 100Ω which is what I was expecting from the data sheet
- [Problem] when pulled low(GND) i get around 10kΩ between the same i/o pins( pin1 & pin2) which is extremely low,
I was expecting something beyond 1MΩ (although the datasheet doesn't say anything about this)
so instead of two resistors 5kΩ and >1M in parallel i get 5kΩ and 10kΩ.

I attached the schematic of the test circuit where i took these measurements.
Any advise is welcome since i am stuck with this for a couple of days already.
Thank you