Fixed a crash in DynamicRibbonWidget