fix a bug when load data from carto