fix a bug when LayeredRangeTree data is empty