fixed incorrect deletion bug in cart editor