fix typo in popup code