fix a bug in MC and update the job_manager and run_self_consistent