fix crash when SetCandidateRelease is used