fix popup positioning