Fixed out-of-bounds access in findVector().