Fixed bug where id of new items set incorrectly