batch mode fixed