fix popup errorrrr