def fix_id(raw_data: dict) -> dict:
    """Fix known errors in station ids like superfluous spaces."""
    if not raw_data:
        return raw_data

    for station in raw_data:
        if "_id" not in station:
            continue

        station["_id"] = station["_id"].replace(" ", "")

        for module in station.get("modules", {}):
            module["_id"] = module["_id"].replace(" ", "")

    return raw_data