fix bug with tab display