Fixed problem when Outfile is advanced parameter (FileInfo)