fixed bug related to editing items