Fix bug to allow multiple instances of extension.