Fix for getting the delegate type.