fix: bugs in popup box.