diff --git a/WinUI/WinUIDesktopSample/MainPage.xaml b/WinUI/WinUIDesktopSample/MainPage.xaml
index 4213c576e..28671b530 100644
--- a/WinUI/WinUIDesktopSample/MainPage.xaml
+++ b/WinUI/WinUIDesktopSample/MainPage.xaml
@@ -6,12 +6,7 @@
xmlns:local="NetCoreDesktopSample"
mc:Ignorable="d"
Height="450" Width="800">
-
-
-
-
-
-
-
-
+
+
+
diff --git a/cswinrt/code_writers.h b/cswinrt/code_writers.h
index e2d2244a0..7d92c3801 100644
--- a/cswinrt/code_writers.h
+++ b/cswinrt/code_writers.h
@@ -3974,7 +3974,7 @@ default_interface_abi_name);
global::System.Runtime.InteropServices.CustomQueryInterfaceResult global::System.Runtime.InteropServices.ICustomQueryInterface.GetInterface(ref Guid iid, out IntPtr ppv)
{
ppv = IntPtr.Zero;
-if (IsOverridableInterface(iid))
+if (IsOverridableInterface(iid) || typeof(global::WinRT.IInspectable).GUID == iid)
{
return global::System.Runtime.InteropServices.CustomQueryInterfaceResult.NotHandled;
}