Fix Delete method compilation error