The grid will now to ensure that the data variable is defined before resetting.