Correct scalar vs. vector error