fix some problem with tabs