[batch] fixed bug where returning result comes as an array