Fixes an issue with forEach when using formData.