fixed bug in plugins.py