fix include-ext and exclude-ext bug