fixed the deletion issue.