correct popup anchor position