Update plugin.py

fix crash