fix delegate type warnings