Change hash to array