[bugfix] adding missed toArray()