fix count history in case of small program
Merge branch 'hotfix/0.7.10'