Sometimes classes implement multiple IDispatch interfaces and the returned interface is of type IDispatch but not the default interface. This fix explicitly cast to the IDispatch interface to get the default interface of the object.
Patch which fixes the bug above
Patch which fixes the bug above