fix if ralph_id is None