fix regex in log_run()