Fix the forEach closure