fixed bug with tabs