Fixes to stat flush
Other fixes
Merge branch 'master' of https://github.com/mdhim/mdhim-tng