temp fix for tab switching