fix on\off plugin state