popup: fix parent search