modify resource id to right value