Fixed delegate generation problem.