Fixed foreach warring.