Proper fix for tab reselection caused title become not selected