fix copyconstructor  nullpointor