Remove type mismatch and rename arrays to vector