Fixed auto resize on tab change