Fix check for unmanaged clone resources