Fixed 'Statemen not reachable' warning in Vector.valid