Fixed some vector comaparison issues.