bug fix:run_script lock