Fix type error.
Merge pull request #52 from pjonsson/vector-compat

Fix type error.