Running the riak-erlang-client I get the following error

https://gist.github.com/russelldb/3fcbf5089cc473184e62

And the code in that gist 'fixes' it (is there another why, yours looks like it should work?)