Fixed bug on Delete method