fix popup init