Fix bug when dismissing not key windowed popover