avoid executing empty batch, it has no effect