fixed issue with popover not initializing