fixed grid size bug