Fixed foreach() with list()