fixed table_types issue