fix share outfile bug, params were switched