I believe that example actually has a bug, the asset name is not stored correctly. But the distribute call is ok.