bugfix for is2dArray