fix illegal offset type in tree module