fix the wrong tab change