fixed the hard delete issue.