fix issue in add edit item.