Bug with passing `null` into `clone()` method fixed