updated the bug in grid