Fixed resource-duplicate error