Update plugin.py

Fixed bug