Corrected order for forEach