Fix for primary tabs on firefox.