Corrected a bug with tabs