fix #45: error when disabling plugin