handle tabs without crashing