remove redundant mode, fix tab