Fixed bug insert counter
Merge branch 'devel'