Fixed problem with empty vectors.