Fix bug with tab traversing.