Fixed vector comparison issue