Another attempt to resolve the popup issue.