Fix warning logging "Trying to delete a inexistent object"