Fixed deletion issue.