Fix build when vec is float3.