fixed bug in adding items with the same key to the interval list