Hash flatten