Fixed bug with tabs