Fix bug in mouseclick on menu item