fix the struct type for []Type