Solve Double Call to Delete