Fix bug in data type vectorisation