Fixed too strong assert in TabWidget