fixed bug in cosmos_id