fix setVector type check error