Here's the steps to reproduce the problme:
1. Click  maintab A, click an item in the list, the subtab is shown out.
2. Click another maintab B, then click A maintab again, click an item in the list, the subtab is missing.

If after clicking maintab B, I clicked its item in the list, I can see the subtab normally, and so does maintab A.