fixed grid size being worng when loading file.