Type was getting stuck from the above foreach loops last type used. This makes sure everything is fresh in altProcessing