fix bug where extension could not be re-enabled