Fix recompute and reset number when resetting the grid

Signed-off-by: Guillaume George <guillaume.george@etu.utc.fr>