fix bugs when columns are string or enum

fix bugs when columns are string or enum