Fixing a bug when changing grid sizes.