Bug fix delete method