Fixing popover directive