Fixed create_doc when doc is a HashDict, close #70