 					pkg = {"id": pkg};
 				node.action = PACKAGE_SHOW;
 				node.metadata = pkg;
-				node.params = {"id": pkg.id};
+				node.params = {"id": pkg['id']};
 			});
 		
 		if (action == PACKAGE_SHOW && result.hasOwnProperty('resources'))

		else
		{
			var cmd:String = 'api/' + source.apiVersion.value + '/rest/' + action.split('_')[0];
			if (params)
				cmd += '/' + params['id'];
			url = URLUtil.getFullURL(url, cmd);
			request = new URLRequest(url);

			return lang("Tags");
		
		if (action == PACKAGE_SHOW || action == GROUP_SHOW || action == TAG_SHOW)
			return metadata['display_name'] || metadata['name'] || metadata['description'] || metadata['url']
				|| (result is String ? result as String : (result['title'] || result['display_name'] || result['name']))
				|| params['id'];
		
