fix tab insertion