Fix tab-related crash on iOS 6