Fixed bug in popover