Fix popover menu closing