some error occured in one of my IFTs that led to NaN issues in one of my mgrid files. I changed things here and in batch_convert so that that doesnt crash the batch_convert so that the rest of the files keep running