Fix popover issue occurring on Mac OS X Mavericks