Fixed the way Grid writes the velocity to a file.