fixing bug with DELETE

fixing bug with DELETE