Fixed a vector scaling bug for velocity and acceleration