Fix foreach for multiple servers