fix vector multiply bug (tests would have helped)