fix fld_id lookup for CheckLayers.R