fix incorrect rescale of vec3