Fix framework deletion issues in addAssessment