fix multiple shell problem #4144
Merge pull request #4145 from qunox/mutipleshell

fix multiple shell problem #4144