fix for the custom menu widget, thanks to tonny.keuken@tidl.nl