improve the compatibility of tree map.