Corrected off-by-one when resetting results cells