bugfix for varray api