fixed array shape mismatch in vectorize;