fix mistake of outFile handler