edit error in deleteAt