Fix clone for BaggingMachine