fix couning bug
Merge branch 'master' of https://github.com/medo/memsim
Merge branch 'master' of https://github.com/medo/memsim