fix case of non-contiguous array and normalize=None