Fix IsDelegate flag