plugin properly deactivates