fix wrong resource type