Fixes using undefined variable for tick count reset.