Fix run_all function