     else
       plugin.packageName = path.basename pluginPath
     if !plugin.name? then plugin.name = plugin.packageName
-    if !plugin.id? then plugin.id = plugin.name
+    if !plugin.id? then plugin.id = plugin.packageName
     if !plugin.link?
       if pluginData[plugin.packageName]?
         plugin.link = pluginData[plugin.packageName].link

      utils.error error

    # Plugin data
    plugin = packageData['poiPlugin']
    if !plugin then plugin = {}
    plugin.packageData = packageData
    if plugin.title? then plugin.name = plugin.title


    # i18n
    i18nFile = null
    if plugin.i18nDir?
      i18nFile = path.join pluginPath, plugin.i18nDir
    else
      try
        fs.accessSync path.join pluginPath, 'i18n'
