popup: scope apply fix