fix bug with typed vcat matrix