avoid running out of the vectores and generating ArrayOutOfBound Exception

try with an empty vector for instance