Gridded Data csv output bug fix