Fix $delegate type