fix click in main menu. Fixes #8731
merge origin/master