Bugfix for using with cnxmenu