Fix foreach case sensitivity