Fix bad bug in type vectorisation