Fix bug regarding d-presence