foreach breaking change