fixed bug with popover in production mode