Fixed cached item count update

Fixes issue #99
Merge branch 'issue_99' into develop