Fixed a bug when a carousel is inside a tab