popup: scope interaction fix