fix for initial selection of tab