fix tab count