Fix for one of the vectors with length 0 (2). I have run the tests and they show no errors.