fixed a vector element comparator as per Ken Krugler's email bug fix