fixed bug with spaces in batchMode