Bug fix

Fixed a bug which occurred while editing an item's id.