Fixing bug with popup page.