diff --git a/includes/jquery.drilldown.js b/includes/jquery.drilldown.js
index 3b6f181..8fe6b8c 100644
--- a/includes/jquery.drilldown.js
+++ b/includes/jquery.drilldown.js
@@ -79,16 +79,16 @@
if (breadcrumb.length > 0) {
var trail = $(settings.trail);
trail.empty();
- for (var key in breadcrumb) {
+ for (var key = 0; key < breadcrumb.length; key++) {
if (breadcrumb[key]) {
// We don't use the $().clone() method here because of an
// IE & jQuery 1.2 bug.
- var clone = $('')
- .attr('href', $(breadcrumb[key]).attr('href'))
- .attr('class', $(breadcrumb[key]).attr('class'))
- .html($(breadcrumb[key]).html())
- .addClass('depth-'+key)
- .appendTo(trail);
+ var clone = $('');
+ clone.html($(breadcrumb[key]).html());
+ clone.attr('href', $(breadcrumb[key]).attr('href'));
+ clone.addClass($(breadcrumb[key]).attr('class'));
+ clone.addClass('depth-'+key)
+ clone.appendTo(trail);
// We add a reference to the original link and a click handler
// that traces back to that instance to set as the active link.