fixed #1 Error when disabling extension