Fix bug with tabs