fix delete item not save db bug.