fixed foreach const