Bug fix delete

delete not working sorry