Fix ASAN crash in tab