Fix tab create bugs
Merge pull request #177 from wangqiang1208/bugfixing/tab_create

Fix tab create bugs