fixed out of bounds error on _transposeArray
Earlier unlinking of temp files.