Bug fix for pop up blocker!