Fix bug with debug notification