CEC connect/disconnects

Hi.
I have my Raspberry Pi connected to a hdmi-switch and then to the hdmi on TV (Panasonic) and the only way that CEC can connect to Rasplex are if I first turn on the hdmi-switch and tv and go to the right hdmi-inputs and then turning Raspberry Pi on. If i turn the RP on first CEC will not connect.
If i then switch the TV-input or HDMI-switch input for looking at something else and then switchs back to inputs with Rasplex then the CEC cant connect again. I needs to restart Rasplex in the right order as above to have the CEC connected again.

Is this a regular problem for all?