fixed a leak happening when receiving a new item via http