     else
       @homepage.hide()
 
-    if issues = @pack.bugs?.url
+    if issues = @metadata.bugs?.url
       @issues.find('a').attr('href', issues)
     else
       @issues.hide()

      version = loadedPackage?.metadata.version
      unless version
        try
          version = Package.loadMetadata(@pack.name).version
      @updateAvailable = semver.gt(@pack.version, version)

    if @updateAvailable
      @update.show()

      if @installed
        if @updateAvailable
          @defaultAction.text('Upgrading\u2026')
          packageManager.install @metadata, (error) =>
            @packageEventEmitter.trigger('package-upgraded', error, @metadata)
        else
          @defaultAction.text('Uninstalling\u2026')
          packageManager.uninstall @metadata, (error) =>
            @packageEventEmitter.trigger('package-uninstalled', error, @metadata)
      else
        @defaultAction.text('Installing\u2026')
        packageManager.install @metadata, (error) =>
          @packageEventEmitter.trigger('package-installed', error, @metadata)

    @updateDefaultAction()

