fixing bug with plugin.py