entity: fixed delete()