Fix resource id