Fixed tab switch error