Fixed active tab issue