fix _.each bug where .length property was being iterated over