fix buid error assosiated to wrong resource direct