invalid vector type check fixed