Bug fix

Handling case of update after newly created item.