fix popover menu in older versions