fixed bug in ndarray constructor