fix popup errors