error in deletion fixed