Fix clone crash