Fix the resource declarations