fix issue with nested tabs