fix some errors when issuing an em-riak instance.