Fix tab create bugs

Now cannot create new tab