No I'm having only one 4051 connected with 3 pots connected to it.
So your code is wrong, do you understand where?