Fixed an issue that prevented disabling plugins