fix for multiple output rasters that are not in a specific order