minor fix on popup plugin.