Trying to fix delete()