     return
 
   createIssueUrl: (packageName, deprecation, stack) ->
-    return unless repo = atom.packages.getActivePackage(packageName)?.metadata?.repository
+    return unless repo = atom.packages.getLoadedPackage(packageName)?.metadata?.repository
     repoUrl = repo.url ? repo
     repoUrl = repoUrl.replace(/\.git$/, '')
 

    "#{repoUrl}/issues/new?title=#{encodeURI(title)}&body=#{encodeURI(body)}"

  createSelectorIssueUrl: (packageName, deprecation, sourcePath) ->
    return unless repo = atom.packages.getActivePackage(packageName)?.metadata?.repository
    repoUrl = repo.url ? repo
    repoUrl = repoUrl.replace(/\.git$/, '')


                    @raw marked(deprecation.getMessage())

                  @div class: 'btn-toolbar', =>
                    if packageName and url = self.createIssueUrl(packageName, deprecation, stack)
                      @a class: 'issue-url', href: url, "Create Issue on #{packageName} repo"

