Fixed bug with tab