Refix grid state