fixed unknown_id handling