Commit with foreach bug.