fixbug. The existing value is overwritten when set_attr which take hashref to an argument.
update document