elementwise comparison of vector constants was completely wrong. Fix