fix typo
remove redundant assertions
stay batch enabled on flush error