Fixed next tab issue