Fixed bug in each.