bugfix NewArray