[#84] optimize OnResourceDuplicate