rectified delete bug