fix bug in run_unix