fixed bug in length and velocity transforms