Fixed a bug in ResetAfterCompleteAction

Also picked more descriptive variable name.