Fixed problem with TabWidget occurring in lower API versions but not in
the latest.