Fixes the positioning issue with the popover