fixed: incorrect entity is deleted on delete()

incorrect variable name; artifact from previous refactor