Fixed restarting batch mode