stmt.cpp forking on foreach