fixes #579 selector for menuitems was broken