Fix bug where DefectEvents didn't persist