Correct scalar vs. vector errors