fixed issue with activating and deactivating the plugin