Fix strange behavior of caching total votes on scoped voting

This pull-request for #100 fixes behavior of caching votes when voting with scope param.