https://github.com/basho/riak_core/issues/391