Bugfix that cause trigger the menu on first click

Also added an example