fix small bug in Delete