Fix lookahead statistics calculations (fixes #26)