fixed a bug where IE8 would miscount the values of an array (wierd huh???)