error in popup position