fixing the render issue for menuitems inside splitbuttons