Fix delegate security issue.