Each with index bug