fix initialization issue with complex ndarrays