Fix variable is undeclared
Focus to item of current window when popup