Fixing the duplicate material clone bug