fixed popup problem