fixed existing items gets updated instead of inserted a second time